SETUPFILE = SetupAnswerkeysDisabler.exe
CABFILE = AnswerkeysDisabler.cab
SRCFILES =	"..\AnswerkeysDisabler\Windows Mobile 6 Professional SDK (ARMV4I)\Release\AnswerkeysDisabler.exe"

CABWIZ = "$(PROGRAMFILES)\Windows Mobile 6 SDK\Tools\CabWiz\CabWiz.exe"

all: $(SETUPFILE)

rebuild: clean all

clean:
	@del $(CABFILE)
	@del $(SETUPFILE)

$(SETUPFILE): $(CABFILE) install.ini
	ezsetup -i install.ini -r readme.txt -e eula.txt -o $(SETUPFILE) -u

$(CABFILE): AnswerkeysDisabler.inf $(SRCFILES)
	$(CABWIZ) AnswerkeysDisabler.inf /compress
